package server.business.play.handler;

import server.ServerHandler;
import server.commonData.User;

import com.core.initialize.Message;
import com.google.protobuf.GeneratedMessage;
/**
 * 准备
 * @author King
 * @deprecated
 *
 */
public class PlayReadyHandler extends ServerHandler {

	@Override
	public Class<? extends GeneratedMessage> initBodyClass() {
		return null;
	}

	@Override
	protected void handler(Message msg, User user) throws Throwable
	{
//		Table table  = user.getTable();
//		PokerPlayer pokerPlayer = table.getPlayers().get(user.getId());
//		if(pokerPlayer.isReady())
//		{
//			System.err.println("已经准备完毕");
//			return;
//		}
//		pokerPlayer.setReady(true);
//
//		
//		msg.clearDate();
//		msg.setModuleAction(S2CMessageId.PLAY.MODULE_ID, S2CMessageId.PLAY.READY_RES);
//		ReadyStatusRes.Builder builder = ReadyStatusRes.newBuilder();
//		builder.setUserId(user.getId());
//		builder.setIsReady(true);
//		msg.setBody(builder);
//		ServerTransportProxy.sendMsgByUser(msg, table.getUsers());
		
	}

}
